package com.pingan.cashier.service.impl;

import com.pingan.cashier.dal.mapper.AccountFlowMapper;
import com.pingan.cashier.dal.mapper.PayChannelMapper;
import com.pingan.cashier.service.AccountFlowService;
import com.pingan.cashier.web.req.AccountFlowReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountFlowServiceImpl implements AccountFlowService {

    @Autowired
    private AccountFlowMapper accountFlowMapper;

    @Override
    public void addAccountFlow(AccountFlowReq accountFlowReq) {
        accountFlowMapper.addAccountFlow(accountFlowReq.getBizNo(),
                accountFlowReq.getTransAmount(),
                accountFlowReq.getBizScene(),
                accountFlowReq.getBizTitle(),
                accountFlowReq.getFromAccountId(),
                accountFlowReq.getToAccountId());
    }
}
